package com.aligotec;

import java.util.HashMap;
import java.util.Map;

public class User {
	private String name;
	private String birth;
	private int department;
	private String email;
	private Map<String, String> props = new HashMap<String, String>();
	
	private Address address;
	
	public User(){}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public int getDepartment() {
		return department;
	}

	public void setDepartment(int department) {
		this.department = department;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Address getAddress() {
		return address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public Map<String, String> getProps(){
		return props;
	}
	public void setProps(Map<String, String> props){
		this.props.putAll(props);
	}
	public void addProp(String k, String v){
		props.put(k, v);
	}
	
	public String toString(){
		return "{name:"+name+", birth:"+birth+", department:"+department+ ", address: " + address + ", props:" + props + "}";
	}
}
